{extend name="property/public/insidePageBase" /}
{block name="title"}标签详情{/block}
{block name="body"}
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-form  layui-form-pane">
            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                <div class="layui-tab layui-tab-brief">
                    <!--基本信息 add-->
                    <div class="layui-form-item">
                        <label class="layui-form-label">标签名称</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$info['label_name'] ?? ''}" readonly autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <table class="layui-hide" id="carwashStoreList" lay-filter="carwashStoreList"></table>
                    <!--基本信息 add-->
                </div>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="js"}
{__block__}
<script>
    layui.use(['laydate','table','upload'], function () {
        var laydate = layui.laydate, table = layui.table,upload = layui.upload;
        let labelId = {$info['id']};
        // 物业列表 add
        var tableIdCarwashStoreList = 'carwashStoreList';
        table.render({
            elem: '#'+tableIdCarwashStoreList,
            id:tableIdCarwashStoreList,
            url: '{:url("propertyCarwashStoreList")}?label_id='+labelId,
            toolbar: '#toolPropertyBasic',
            cols: [[
                {type: "checkbox", width: 50},
                {field: 'room_name', width: 298, title: '房间名称', templet:'#room_name_tpl'},
                {field: 'room_size', width: 106, title: '房间面积', templet:function(d) {
                        return d.room_size + ' m²';
                    },sort: true},
                {field: 'room_rent', width: 108, title: '租金/月', templet:function(d) {
                        return d.room_rent + ' ¥/月';
                    },sort: true},
                {field: 'room_deposit', width: 118, title: '房间押金', templet:function(d) {
                        return d.room_deposit + ' ¥';
                    },sort: true},
                {field: 'contract_status', width: 278, title: '租赁到期时间', templet:'#contract_status_tpl', sort: true},
                {field: 'add_time', width: 168, title: '创建时间', sort: true, fixed:'right'},
            ]],
            limits: [10, 15, 20, 25, 50, 100],
            limit: 15,
            page: true,
            height: 'full-100'
        });
        // 物业列表 end
    });
</script>
{/block}